<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<script type="text/javascript" th:src="@{/order/js/jquery.min.js}"></script>
<script type="text/javascript">
    var websocket = new WebSocket("ws://localhost:9007/aa");
    websocket.onmessage=function (event) {
        if(event.data=="1"){
             window.location.href="http://localhost:9007/order/showsuccess";
        }
   }
</script>
<html>
<body>
<h2>在线支付</h2>
  <img src="http://localhost:9007/order/testorder/createImg" style="height: 100px;width: 100px;"/>
</body>
</html>